import { createApp } from "vue";
import { registerApp } from './global';   // 注册element-plus/其他  registerApp
// import ElementPlus from 'element-plus'     //全局注册element-plus
// import 'element-plus/dist/index.css'
// import hyRequest from './service'
import 'normalize.css'
import './assets/css/index.css'
import instance from './service/http'

import App from "./App.vue";

import router from "./router";
import store from './store';
import axios from "axios";
//------
// let BASE_URL = ''
// const TIME_OUT = 10000

// if (process.env.NODE_ENV === 'development') {
//   BASE_URL = 'http://123.207.32.32:8000/'
// } else if (process.env.NODE_ENV === 'production') {
//   BASE_URL = 'http://coderwhy.org/prod'
// } else {
//   BASE_URL = 'http://coderwhy.org/test'
// }


// app.use(ElementPlus)
createApp(App).use(router).use(store).use(registerApp).mount('#app')

instance.request({
  url: '/home/multidata',
  method:'GET'
})
// hyRequest.request({
//   url: '/home/multidata',
//   method: 'GET',
//   headers: {},
//   interceptors: {
//     requestInterceptor: (config) => {
//       console.log('单独请求的config')
//       config.headers['token'] = '123'
//       return config
//     },
//     responseInterceptor: (res) => {
//       console.log('单独响应的response')
//       return res
//     }
//   }
// })
